package zhongbo.java.air.flightpath.model.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import zhongbo.java.air.common.enums.SourceType;

import java.util.Date;

/**
 * @author WeiJin
 * @version 1.0
 * @date 2025/3/31 10:19
 */
@Data
@TableName("air_flight_path")
@ApiModel("飞行轨迹")
public class FlightPath {
    @ApiModelProperty("UUID 主键")
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("关联飞机ICAO码")
    private String icaoCode;

    @ApiModelProperty("时间戳（精确到毫秒）")
    private Date timestamp;

    @ApiModelProperty("纬度（WGS84坐标系）")
    private Double latitude;

    @ApiModelProperty("经度（WGS84坐标系）")
    private Double longitude;

    @ApiModelProperty("海拔高度（米）")
    private Integer altitude;

    @ApiModelProperty("地速（公里/小时）")
    private Integer speed;

    @ApiModelProperty("航向角（0-359度）")
    private Integer heading;

    @ApiModelProperty("数据源类型（枚举值：ADS_B, RADAR, MLAT）")
    private String sourceType;
}
